import request from '@/utils/request'

// 查询取衣柜列表
export function listCabinetGroup(query) {
  return request({
    url: '/clothes/cabinetGroup/list',
    method: 'get',
    params: query
  })
}

// 查询取衣柜详细
export function getCabinetGroup(id) {
  return request({
    url: '/clothes/cabinetGroup/' + id,
    method: 'get'
  })
}

// 新增取衣柜
export function addCabinetGroup(data) {
  return request({
    url: '/clothes/cabinetGroup/add',
    method: 'post',
    data: data
  })
}

// 修改取衣柜
export function updateCabinetGroup(data) {
  return request({
    url: '/clothes/cabinetGroup/edit',
    method: 'put',
    data: data
  })
}

// 删除取衣柜
export function delCabinetGroup(id) {
  return request({
    url: '/clothes/cabinetGroup/remove/' + id,
    method: 'delete'
  })
}

// 导出取衣柜
export function exportCabinetGroup(query) {
  return request({
    url: '/clothes/cabinetGroup/export',
    method: 'get',
    params: query
  })
}

// 查询取衣柜详细
export function getGrid(id) {
  return request({
    url: '/clothes/cabinetGroup/getGrid/' + id,
    method: 'get'
  })
}
